Skip to content

refactor: unify GTA V world meta writes onto snapshot-free layered schemas and typed CMapData (desloppify wave 5F) - #117

Merged
leonidarider merged 1 commit into
mainfrom
agent/desloppify-w5f
Dec 3, 2026
Merged

leonidarider merged 1 commit into
mainfrom
agent/desloppify-w5f

Conversation

@leonidarider

Copy link
Copy Markdown
Contributor

Summary

Resolves incomplete_migration::gta5_world_dual_meta_stacks (wave 5F):

  • Updated or_world_gta5::write::synthesise to layer type_tables::of_layout(layout) with or_io::meta::typed::world_types::declared() and any installed snapshot via type_tables::layered, making write::encode and WorkingSet::finish work snapshot-free just like typed metadata.
  • Added typed ContentFlags::of_typed, extents::compute_typed, validate::check_typed, and write::{refuse_if_broken_typed, apply_flags_typed, apply_extents_typed} sharing single implementations with the MetaInstance helpers.
  • Eliminated the serialize-then-reparse parse_meta_binary_full + write::encode round trip in create::map_file, validating and deriving flags/extents directly on typed CMapData before a single map.to_bytes() call.
  • Removed stale snapshot-required skip guards in a_prefab_round_trips_every_map and executing_a_plan_keeps_every_link, and added 3 snapshot-free unit tests.

Verification

  • just ready: 3,412 tests passed in 306 binaries, 0 clippy regressions (only the 4 pre-existing origin/main failures).
  • All 3 new unit tests in or-world-gta5 passed under OPENRAGE_SCHEMA=none.
  • Pre-commit hook (fmt, encoding, provenance): clean.

…hemas and typed CMapData (desloppify wave 5F)

- Make or_world_gta5::write::synthesise snapshot-free by layering
  type_tables::of_layout(layout) with declared world_types schemas and any
  installed snapshot via type_tables::layered, so write::encode and
  WorkingSet::finish no longer require a staged schema snapshot.
- Add typed ContentFlags::of_typed, extents::compute_typed, validate::check_typed,
  and write::{refuse_if_broken_typed, apply_flags_typed, apply_extents_typed}
  sharing the exact derivation logic with the MetaInstance path.
- Update create::map_file to apply flags, extents, and validation directly on
  typed CMapData before a single map.to_bytes() call, eliminating the
  serialize-then-reparse MetaInstance round trip.
- Add snapshot-free unit tests in write.rs and create.rs and remove stale
  snapshot-required skip guards in or-world-gta5 integration tests.
@leonidarider
leonidarider merged commit 4e9c310 into main Dec 3, 2026
@leonidarider
leonidarider deleted the agent/desloppify-w5f branch December 3, 2026 02:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant